<?php


/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Gmap
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */
 
 
?>

<div class="gmap_preview_map_wrapper">
  <h3><?php echo $this->gmap->getTitle();?></h3>
  
  <?php $this->google_map->setHeight('360px')
        ->setWidth('480px'); 
  ?>
  <?php echo $this->gmapMarker($this->google_map, $this->gmap); ?>
  
      <div class="gmap_date">
        <?php echo $this->timestamp($this->gmap->creation_date) ?>
        <?php if ($this->category):?>
          - <?php $category_url = $this->htmlLink(array('route' => 'gmap_browse', 'category' => $this->category->category_id), $this->translate($this->category->category_name)); 
            echo $this->translate('Posted in %s', $category_url);
          ?>
            
        <?php endif; ?>
        <?php if (count($this->gmapTags )):?>
        -
          <?php foreach ($this->gmapTags as $tag): ?>
          <?php if (!empty($tag->getTag()->text)):?>
            <?php echo $this->htmlLink(array(
              'route' => 'gmap_browse',
              'tag' => $tag->getTag()->tag_id
            ),
            '#'.$tag->getTag()->text
            ); ?>
          <?php endif; ?>
          <?php endforeach; ?>
        <?php endif; ?>
      </div>
  
</div>      